package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseCar;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseCar is a Querydsl query type for EBaseCar
 */
@Label("车辆基本信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseCar extends RelationalPathBase<EBaseCar> {

    private static final long serialVersionUID = 1640461946;

    public static final QBaseCar baseCar = new QBaseCar("base_car");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseCar> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFuelRegister> baseCarTbFuelRegister1Fk = createForeignKey(tbFuelRegisterId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseFleet> baseCarBaseFleetFk = createForeignKey(baseFleetId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseGps> baseGpsFk = createForeignKey(baseGps, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> baseCarBaseCompany1Fk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseDriver> baseCarBaseDriver1Fk = createForeignKey(baseDriverId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbContainerInfo> _trailerCarIdFk = createInvForeignKey(id, "trailerCarId");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbContainerInfo> _carFk = createInvForeignKey(id, "carId");

    }

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath baseDriverId = createString("baseDriverId");

    public final StringPath baseFleetId = createString("baseFleetId");

    public final StringPath baseGps = createString("baseGps");

    public final StringPath comments = createString("comments");

    public final StringPath company = createString("company");

    public final NumberPath<Float> deadWeight = createNumber("deadWeight", Float.class);

    public final StringPath driver = createString("driver");

    public final StringPath engineNumber = createString("engineNumber");

    public final StringPath flag = createString("flag");

    public final StringPath frameNumber = createString("frameNumber");

    public final StringPath id = createString("id");

    public final StringPath insurancePolicy = createString("insurancePolicy");

    public final StringPath liabilityInsura = createString("liabilityInsura");

    public final StringPath licencePlate = createString("licencePlate");

    public final StringPath limitTime = createString("limitTime");

    public final StringPath location = createString("location");

    public final StringPath onlineTask = createString("onlineTask");

    public final StringPath status = createString("status");

    public final StringPath tbFuelRegisterId = createString("tbFuelRegisterId");

    public final StringPath weixinNo = createString("weixinNo");

    public final StringPath weixinPassword = createString("weixinPassword");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseCar(String variable) {
        super(EBaseCar.class, forVariable(variable), "null", "base_car");
        addMetadata();
    }

    public QBaseCar(String variable, String schema, String table) {
        super(EBaseCar.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseCar(Path<? extends EBaseCar> path) {
        super(path.getType(), path.getMetadata(), "null", "base_car");
        addMetadata();
    }

    public QBaseCar(PathMetadata<?> metadata) {
        super(EBaseCar.class, metadata, "null", "base_car");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(17).ofType(Types.CHAR).withSize(24));
        addMetadata(baseDriverId, ColumnMetadata.named("base_driver_id").withIndex(18).ofType(Types.CHAR).withSize(24));
        addMetadata(baseFleetId, ColumnMetadata.named("base_fleet_id").withIndex(3).ofType(Types.CHAR).withSize(24));
        addMetadata(baseGps, ColumnMetadata.named("baseGps").withIndex(21).ofType(Types.CHAR).withSize(24));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(16).ofType(Types.VARCHAR).withSize(45));
        addMetadata(company, ColumnMetadata.named("company").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(deadWeight, ColumnMetadata.named("deadWeight").withIndex(8).ofType(Types.REAL).withSize(12));
        addMetadata(driver, ColumnMetadata.named("driver").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(engineNumber, ColumnMetadata.named("engineNumber").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(20).ofType(Types.VARCHAR).withSize(45));
        addMetadata(frameNumber, ColumnMetadata.named("frameNumber").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(insurancePolicy, ColumnMetadata.named("insurancePolicy").withIndex(11).ofType(Types.VARCHAR).withSize(45));
        addMetadata(liabilityInsura, ColumnMetadata.named("liabilityInsura").withIndex(12).ofType(Types.VARCHAR).withSize(45));
        addMetadata(licencePlate, ColumnMetadata.named("licencePlate").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(limitTime, ColumnMetadata.named("limitTime").withIndex(13).ofType(Types.VARCHAR).withSize(45));
        addMetadata(location, ColumnMetadata.named("location").withIndex(14).ofType(Types.VARCHAR).withSize(45));
        addMetadata(onlineTask, ColumnMetadata.named("onlineTask").withIndex(22).ofType(Types.VARCHAR).withSize(5));
        addMetadata(status, ColumnMetadata.named("status").withIndex(15).ofType(Types.VARCHAR).withSize(45));
        addMetadata(tbFuelRegisterId, ColumnMetadata.named("tb_fuel_register_id").withIndex(19).ofType(Types.CHAR).withSize(24));
        addMetadata(weixinNo, ColumnMetadata.named("weixinNo").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(weixinPassword, ColumnMetadata.named("weixinPassword").withIndex(7).ofType(Types.VARCHAR).withSize(45));
    }

}

